<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>管理平台</title>
    <link rel="shortcut icon" href="favicon.ico">
    <link href="../../css/bootstrap.min.css?v=3.3.5" rel="stylesheet">
    <link href="../../css/font-awesome.min.css?v=4.4.0" rel="stylesheet">
    <link href="../../css/animate.min.css" rel="stylesheet">
    <link href="../../css/style.min.css?v=4.0.0" rel="stylesheet">
    <link href="../../css/plugins/awesome-bootstrap-checkbox/awesome-bootstrap-checkbox.css" rel="stylesheet">
    <link href="http://cdn.bootcss.com/bootstrap-table/1.9.1/bootstrap-table.min.css" rel="stylesheet">
    <link rel="stylesheet" href="../../plugins/layui/css/layui.css">
    <link rel="stylesheet" href="../../css/main.css">
    <base target="_blank">
</head>
<body>
<div class="ibox-content">
    <div class="wrapper wrapper-content animated fadeInRight">
        <div class="row">
            <div class="col-sm-12">
                <div class="ibox float-e-margins">
                    <div class="ibox-content">
                        <div class="form-inline" style="margin-bottom: 10px; text-align: right;">
                            <input class="form-control" id="search" name="username" type="text" placeholder="请输入用户名"/>
                            <span class="glyphicon glyphicon-search"
                                  style="position: relative;left: -25px;top: 4px; cursor: pointer;"></span>
                            <button type="button" id="btn_add" class="btn btn-primary auth user-add" style="margin-bottom: 0px;">
                                <i class="fa fa-plus"></i>添加
                            </button>
                        </div>
                        <table id="table"></table>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <!-- 模态框（Modal） -->
    <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                    <h4 class="modal-title" id="myModalLabel">人员管理</h4>
                </div>
                <div class="modal-body">
                    <form class="form-horizontal required-validate">
                        <input type="hidden" name="userId" value="0" />
                        <div class="form-group">
                            <label class="col-md-2 col-md-offset-1 control-label"><span style="color: red;">*</span>姓名</label>
                            <div class="col-md-8">
                                <input type="text" name="username" class="form-control" placeholder="15个字以内" value="" />
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-md-2 col-md-offset-1 control-label"><span style="color: red;">*</span>手机号码</label>
                            <div class="col-md-8">
                                <input type="text" name="phone" class="form-control" value="" placeholder="数字, 11位" />
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-md-2 col-md-offset-1 control-label">邮箱地址</label>
                            <div class="col-md-8">
                                <input type="text" name="email" class="form-control" value="" placeholder="公司邮箱地址" />
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-md-2 col-md-offset-1 control-label" id="label-password">
                                <span style="color: red;">*</span>密码设置
                            </label>
                            <div class="col-md-8">
                                <input type="password" name="password" class="form-control" value="" placeholder="密码设置" />
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-md-3 control-label" id="label-seatid">
                                七鱼系统id
                            </label>
                            <div class="col-md-8">
                                <input type="number" name="seatid" class="form-control" value="" placeholder="七鱼系统id" />
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-md-3 control-label" id="label-workno">
                                客服工号
                            </label>
                            <div class="col-md-8">
                                <input type="number" name="workno" class="form-control" value="" placeholder="客服工号" />
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-md-2 col-md-offset-1 control-label"><span style="color: red;">*</span>角色分配</label>
                            <div class="col-md-8" id="role-area">
                                <!--js 填充所有角色-->
                            </div>
                            <div class="col-md-10 col-md-offset-3 error" id="roleError"></div>
                        </div>
                        <div class="form-group">
                            <label class="col-md-2 col-md-offset-1 control-label">人员备注</label>
                            <div class="col-md-8">
                                <textarea name="description" class="form-control" placeholder="请输入100字以内" rows="3"></textarea>
                            </div>
                        </div>
                    </form>
                </div>
                <div class="modal-footer">
                    <button type="submit" class="btn btn-primary" id="submit-btn">确认</button>
                    <button type="button" id="closeModal" class="btn btn-default" data-dismiss="modal">取消</button>
                </div>
            </div>
        </div>
    </div>

</div>
<script src="../../js/jquery.min.js?v=2.1.4"></script>
<script src="../../js/bootstrap.min.js?v=3.3.5"></script>
<script src="../../js/plugins/bootstrap-table/bootstrap-table.js"></script>
<script src="../../js/plugins/bootstrap-table/locale/bootstrap-table-zh-CN.min.js"></script>
<script type="text/javascript" src="../../js/plugins/validate/jquery.validate.min.js"></script>
<script type="text/javascript" src="../../js/plugins/validate/messages_zh.min.js"></script>
<script src="../../js/plugins/form/3.51.0/jquery.form.min.js"></script>
<script src="../../js/plugins/layer/layer.min.js"></script>

<script src="../../plugins/layui/layui.js"></script>
<script>
    layui.config({
        base: '../../scripts/common/', //你的模块目录
        version : parent.layui.cache.version
    }).use('../app/admin/admin'); //加载入口
</script>
</body>

</html>